package com.kuqi.entitiy;


/**
 * 登录状态枚举
 */
public enum LoginState {

    SUCCESS(200, "success"),
    FAIL(400, "fail"),
    NORESULT(404, "没有数据"),
    SECRETERROR(301,"密匙错误"),
    PASTDUE(302,"认证过期"),
    REUSE(303, "账号重复"),
    UNDEFINE(500, "未知异常"),
    NORECORD(402, "没有之前的登录记录");

    private int code;
    private String value;

    LoginState(int code, String value) {
        this.code = code;
        this.value = value;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
